<?php

class Sgit_Form extends Zend_Form
{
    
    
    
    
    public function init()
    {

        $this ->setMethod('post')
		      ->setAttrib('id', 'ajax_form')
              ->setAttrib('enctype', 'multipart/form-data');

		$this->setDecorators(
			array(	"FormElements",
					array("HtmlTag", array("tag" => "table")),
					"Form"
			)
		);
    
        
       $this->setDescription('<label class="required"> Field Required</label>');

    
    
    
       $this->init_form();
  
                            
    }
    
    
    function getDecoratorFile(){

          return  array(
                'File',
                'Errors',
                array(array('data' => 'HtmlTag'), array('tag' => 'td','class' => 'element')),
                array('Label', array('tag' => 'td')),
                array(array('row' => 'HtmlTag'), array('tag' => 'tr'))
            );
    }
    
    
    
    function getDecoratorElement(){
        return  array('ViewHelper', 
                    'Errors', 
                    array(
                        array('data' => 'HtmlTag'), 
                        array('tag' => 'td', 'class' => 'element')
                    ), 
                    array('Label', array('tag' => 'td')), 
                    array(
                        array('row' => 'HtmlTag'), 
                        array('tag' => 'tr')
                    )
        );
    }
    
   
    
    
}